#include "./ListSizeRecoder.h"

void ListSizeRecoder::run() {
	while (1) {
		struct tm *newtime;
		char tmpbuf[50];
		time_t lt1;             
		time(&lt1);     
		newtime = localtime(&lt1);
		strftime( tmpbuf, 50, "%g/%m/%d %T ", newtime);
		string temp = tmpbuf;  
		mLogFile << tmpbuf << mRefer->SizeOfList() << endl;
		sleep(5);  
	}              
}


